package com.xh.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 项目对象 d_project
 *
 * @author dongxuefei
 * @date 2020-09-06
 */
public class DProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 项目编码 */
    private String projectCode;

    /** 项目名称 */
    private String projectName;

    /** 项目描述 */
    private String remarks;

    /** 表数量 */
    private int tableNum;

    /** 数据库类型(1:mysql,2:oracle) */
    private String dbType;

    /** 当前拥有人ID */
    private long ownerId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;
    /** 创建人姓名 */
    private String createName;
    /** 更新人姓名 */
    private String updateName;

    /** 主项目ID(关联项目) */
    private String sysProjectId;

    /** 0打开，1关闭 */
    private String status;


    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setProjectCode(String projectCode)
    {
        this.projectCode = projectCode;
    }

    public String getProjectCode()
    {
        return projectCode;
    }
    public void setProjectName(String projectName)
    {
        this.projectName = projectName;
    }

    public String getProjectName()
    {
        return projectName;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }
    public void setTableNum(int tableNum)
    {
        this.tableNum = tableNum;
    }

    public int getTableNum()
    {
        return tableNum;
    }
    public void setDbType(String dbType)
    {
        this.dbType = dbType;
    }

    public String getDbType()
    {
        return dbType;
    }
    public void setOwnerId(long ownerId)
    {
        this.ownerId = ownerId;
    }

    public long getOwnerId()
    {
        return ownerId;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }



    public void setCreateName(String createName)
    {
        this.createName = createName;
    }
    public String getCreateName()
    {
        return createName;
    }



    public void setUpdateName(String updateName)
    {
        this.updateName = updateName;
    }

    public String getUpdateName()
    {
        return updateName;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("projectCode", getProjectCode())
                .append("projectName", getProjectName())
                .append("remarks", getRemarks())
                .append("tableNum", getTableNum())
                .append("dbType", getDbType())
                .append("ownerId", getOwnerId())
                .append("createBy", getCreateBy())
                .append("createDate", getCreateDate())
                .append("updateBy", getUpdateBy())
                .append("updateDate", getUpdateDate())
                .append("delFlag", getDelFlag())
                .append(createName,getCreateName())
                .append(updateName,getUpdateName())
                .toString();
    }

    public String getSysProjectId() {
        return sysProjectId;
    }

    public void setSysProjectId(String sysProjectId) {
        this.sysProjectId = sysProjectId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
